import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import { DICT_TYPE, getDictData, getDictDataLabel, getDictDatas } from './utils/dict'
import { formatTimestamp } from './utils/format'
import env from '@/.env'
import store from '@/store'
import './style.css'

Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$env = env

Vue.prototype.$DICT_TYPE = DICT_TYPE
Vue.prototype.$getDictData = getDictData
Vue.prototype.$getDictDatas = getDictDatas
Vue.prototype.$getDictDataLabel = getDictDataLabel
Vue.prototype.$formatTimestamp = formatTimestamp

App.mpType = 'app'

const app = new Vue({
  ...App,
})
app.$mount()
